package teaching.demo2;

import java.util.ArrayList;

public class Student extends Person{
    private String studentId;
    private ArrayList<String> courseList;

    public Student(){
        super();
    }

    public Student(String studentId,int age) {
        super(age);
        this.studentId = studentId;
    }

    public void sayMyName(){
        System.out.println(this.studentId + ":" + this.getName());
    }

    public String getStudentId() {
        super.getId();
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public ArrayList<String> getCourseList() {
        return courseList;
    }

    public void setCourseList(ArrayList<String> courseList) {
        this.courseList = courseList;
    }
}
